<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="../../layout/base/base.css">
    <link rel="stylesheet" href="com-search.css">
    <script src="../../lib/jquery.js"></script>
</head>
<body>

<div class="feat-grid feat-reset demo clearfix">

    <div class="form-group">
        <label class="com-search">
            <input type="text">
            <img class="searchImg" src="search2.png">
        </label>
    </div>



</div>
<script>

    function search(fun){

        var _this = $('.com-search');

        _this.find(".searchImg").on('click',function(){

            fun ? fun(_this.find('input').val()) : '';

        })
    }

    search(function(val){

        console.log(val)

    });



</script>
</body>
</html>